package cn.tedu.stu_admin.entity;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 学生表
 */
@Data
public class StuInfo {
    private Integer id;
    private Integer stuNo;
    private String username;
    private String password;
    private String gender;
    private String createdStr;
    private String classInfo;
    private String phone;
    private long created;
    private String intro;

    public String getCreatedStr(){
        SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date(this.created);
        return f.format(date);
    }

}
